package com.ssm.pojo;

public class Task {
    private Integer taskId;
    private Integer stuId;
    private String reward;
    private String addtime;
    private String taskname;
    private String taskcontext;
    private Integer state;
    private Integer acceptStuId;
    private Student student;

    public Task() {
    }

    public Task(Integer taskId, Integer stuId, String reward, String addtime, String taskname, String taskcontext, Integer state, Integer acceptStuId, Student student) {
        this.taskId = taskId;
        this.stuId = stuId;
        this.reward = reward;
        this.addtime = addtime;
        this.taskname = taskname;
        this.taskcontext = taskcontext;
        this.state = state;
        this.acceptStuId = acceptStuId;
        this.student = student;
    }

    public Integer getTaskId() {
        return taskId;
    }

    public void setTaskId(Integer taskId) {
        this.taskId = taskId;
    }

    public Integer getStuId() {
        return stuId;
    }

    public void setStuId(Integer stuId) {
        this.stuId = stuId;
    }

    public String getReward() {
        return reward;
    }

    public void setReward(String reward) {
        this.reward = reward;
    }

    public String getAddtime() {
        return addtime;
    }

    public void setAddtime(String addtime) {
        this.addtime = addtime;
    }

    public String getTaskname() {
        return taskname;
    }

    public void setTaskname(String taskname) {
        this.taskname = taskname;
    }

    public String getTaskcontext() {
        return taskcontext;
    }

    public void setTaskcontext(String taskcontext) {
        this.taskcontext = taskcontext;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getAcceptStuId() {
        return acceptStuId;
    }

    public void setAcceptStuId(Integer acceptStuId) {
        this.acceptStuId = acceptStuId;
    }

    public Student getStudent() {
        return student;
    }

    public void setStudent(Student student) {
        this.student = student;
    }

    @Override
    public String toString() {
        return "Task{" +
                "taskId=" + taskId +
                ", stuId=" + stuId +
                ", reward='" + reward + '\'' +
                ", addtime='" + addtime + '\'' +
                ", taskname='" + taskname + '\'' +
                ", taskcontext='" + taskcontext + '\'' +
                ", state=" + state +
                ", acceptStuId=" + acceptStuId +
                ", student=" + student +
                '}';
    }
}
